//
//  NSObject+Observer.h
//  OberverTest
//
//  Created by ma c on 2017/8/17.
//  Copyright © 2017年luojianzhen. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^OberverCallback) (NSString*key,id object,NSDictionary<NSKeyValueChangeKey,id>*change);

@interface NSObject (Observer)

- (void)addMonitor:(NSObject*)object key:(NSString*)key option:(NSKeyValueObservingOptions)option callback:(OberverCallback)callback;

@end
